Delete File
AutomatR.Zendesk.Activities.DeleteFile
The "Delete File" activity in AutomatR is part of the Zendesk activities package, allowing the deletion of files associated with a ticket in Zendesk. This activity simplifies the process of removing specific files, identified by their unique file token, from the ticket.
Properties
Name | Description |
---|---|
Input | |
File Token | The name of the file. This field supports only strings or String variables. The endpoint has a required filename query parameter. The parameter specifies what the file will be named when attached to the ticket comment. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Enter the wait time in seconds (Example: 5 seconds i.e., 5) to start the activity. |
Output | |
Result | Returns true/false, indicating whether the file deletion was successful. |
How to use:
- Drag and drop the "Delete File" activity onto the workflow.
- Configure the properties by specifying the file token (name) of the file to be deleted.
- Optionally, configure the delay.
- Execute the workflow to delete the specified file from the Zendesk ticket.
Example:
Consider an example where the "Delete File" activity is used to delete a file with the token "xyz123" from a Zendesk ticket:
Delete File:
Delay: 0
File Token: "xyz123"
Result: isDeleteSuccessful
In this example, the activity deletes the file with the token "xyz123" from the associated Zendesk ticket. The result of the operation (success or failure) is stored in the Boolean variable "isDeleteSuccessful" for further handling in the workflow.